﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	xmlns:local="clr-namespace:myTwitter"
	x:Class="myTwitter.Thumb"
	x:Name="UserControl">
	<UserControl.Resources>
		<Style x:Key="ButtonFocusVisual">
			<Setter Property="Control.Template">
				<Setter.Value>
					<ControlTemplate>
						<Rectangle Stroke="Black" StrokeDashArray="1 2" StrokeThickness="1" Margin="2" SnapsToDevicePixels="true"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
			<GradientStop Color="#F3F3F3" Offset="0"/>
			<GradientStop Color="#EBEBEB" Offset="0.5"/>
			<GradientStop Color="#DDDDDD" Offset="0.5"/>
			<GradientStop Color="#CDCDCD" Offset="1"/>
		</LinearGradientBrush>
		<SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF707070"/>
		<Style x:Key="ButtonStyle1" TargetType="{x:Type Button}">
			<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
			<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Padding" Value="1"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Border Margin="{TemplateBinding Padding}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1,1,1,1" CornerRadius="5,5,5,5" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}">
							<Border Width="Auto" Height="Auto" BorderBrush="#FF2F566E" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4">
								<Grid>
									<Grid.RowDefinitions>
										<RowDefinition Height="0.513*"/>
										<RowDefinition Height="0.487*"/>
									</Grid.RowDefinitions>
									<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.RowSpan="2"/>
									<Rectangle Stroke="{x:Null}" Height="Auto" VerticalAlignment="Stretch" RadiusY="3.5" RadiusX="3.5">
										<Rectangle.Fill>
											<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
												<GradientStop Color="#34FFFFFF" Offset="0"/>
												<GradientStop Color="#19FFFFFF" Offset="1"/>
											</LinearGradientBrush>
										</Rectangle.Fill>
									</Rectangle>
								</Grid>
							</Border>
						</Border>
						<ControlTemplate.Triggers>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="#ADADAD"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<VisualBrush x:Key="SignInBrush" Visual="{Binding ElementName=_signInBt}"/>
	</UserControl.Resources>

	<Grid x:Name="_front" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto">
		<Grid x:Name="LayoutRoot_Copy">
			<Image Source="login.png" Stretch="Fill" HorizontalAlignment="Left" Margin="0,0,0,43.432" Width="300" d:IsHidden="True" Visibility="Collapsed"/>
			<Border HorizontalAlignment="Left" VerticalAlignment="Stretch" Width="300" Height="Auto" BorderBrush="{x:Null}" BorderThickness="1,1,1,1" Background="#FF102B3E" Margin="0,0,0,0" CornerRadius="10,10,10,10" Opacity="0.995">
				<Border BorderBrush="#FF498DB6" BorderThickness="0,2,0,0" CornerRadius="10,10,10,10" Margin="0,0,0,0">
					<Border.Background>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#FF2F5F7D" Offset="0"/>
							<GradientStop Color="#00112C3F" Offset="0.404"/>
						</LinearGradientBrush>
					</Border.Background>
				</Border>
			</Border>
			<TextBlock Margin="91.81,6.875,92.06,0" VerticalAlignment="Top" FontSize="20" Foreground="#FF396786" Text="myTwitter" TextWrapping="Wrap" FontWeight="Bold" Background="{x:Null}" HorizontalAlignment="Center" FontFamily="Century Gothic"/>
			<TextBlock Margin="91.81,6.625,92.06,0" VerticalAlignment="Top" FontSize="20" Foreground="#FF17374C" Text="myTwitter" TextWrapping="Wrap" FontWeight="Bold" Background="{x:Null}" HorizontalAlignment="Center" FontFamily="Century Gothic"/>
		</Grid>
		<local:LoginScreen x:Name="_loginCtrl" Margin="0,36,2,40" Visibility="Visible" VerticalAlignment="Top" Height="270.4"/>
		<Grid x:Name="_designCredits" HorizontalAlignment="Stretch" Margin="0,0,8,8" VerticalAlignment="Bottom" Width="Auto" Height="39">
			<Image Source="Images\eden.png" Stretch="None" HorizontalAlignment="Right"/>
			<TextBlock HorizontalAlignment="Left" VerticalAlignment="Bottom" Text="Twitter client designed by" TextWrapping="Wrap" Margin="10,0,0,0" Foreground="#FF3C5C6F" FontFamily="Calibri" RenderTransformOrigin="0.5,0.5">
				<TextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1" ScaleY="1"/>
						<SkewTransform AngleX="0" AngleY="0"/>
						<RotateTransform Angle="0"/>
						<TranslateTransform X="0" Y="2"/>
					</TransformGroup>
				</TextBlock.RenderTransform>
			</TextBlock>
		</Grid>
	</Grid>
</UserControl>